﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace MesProjectERP.Host.MesProjectERPDomain
{
    [Table("materialgroupmodel")]
    public partial class Materialgroupmodel : BaseEntity
    {
        /// <summary>
        ///物料群组id
        /// </summary>
        [Key]
        [Display(Name = "物料群组id")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int MaterialId { get; set; }

        /// <summary>
        ///物料群组编码
        /// </summary>
        [Display(Name = "物料群组编码")]
        [MaxLength(100)]
        [Column(TypeName = "text")]
        [Editable(true)]
        public string MaterialGroupCode { get; set; }

        /// <summary>
        ///物料群组名称
        /// </summary>
        [Display(Name = "物料群组名称")]
        [MaxLength(100)]
        [Column(TypeName = "text")]
        [Editable(true)]
        public string MaterialGroupName { get; set; }

        /// <summary>
        ///类型
        /// </summary>
        [Display(Name = "类型")]
        [MaxLength(100)]
        [Column(TypeName = "text")]
        [Editable(true)]
        public string MaterialGroupType { get; set; }

        /// <summary>
        ///默认工艺路线
        /// </summary>
        [Display(Name = "默认工艺路线")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? OperationalPathId { get; set; }

        /// <summary>
        ///描述
        /// </summary>
        [Display(Name = "描述")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string MaterialGroupDescribe { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(100)]
        [Column(TypeName = "text")]
        [Editable(true)]
        public string CreateUserName { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(100)]
        [Column(TypeName = "text")]
        [Editable(true)]
        public string UpdateUserName { get; set; }

        /// <summary>
        ///创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        ///更新时间
        /// </summary>
        [Display(Name = "更新时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        ///软删除
        /// </summary>
        [Display(Name = "软删除")]
        [Editable(true)]
        public bool IsDeleted { get; set; }


    }
}
